package logic.ui.cell
{
	import component.show.containers.tree.TreeCellRenderer;
	import component.show.containers.tree.TreeCellRendererVO;
	
	import fl.controls.Label;
	
	import logic.def.Assets;

	public class ScanUITree_UITreeCell extends TreeCellRenderer
	{
		private var m_label : Label;
		
		public function ScanUITree_UITreeCell()
		{
			this.opaqueBackground = 0xffff00;
			
			m_label = new Label;
			
			m_label.text = "null";
			
			m_label.validateNow();
			
//			this.addChild(m_label);
		}
		
		override public function set data(value:TreeCellRendererVO):void 
		{
			super.data = value;
			
			if (value != null) 
			{	
				m_label.text = data.data.item.name;
				m_label.validateNow();
			}
		}
	}
}